package com.leyou.common.exception;

import lombok.Getter;

@Getter
public class LyException extends RuntimeException{
    /**
     * 异常状态码信息
     */
    private int status;

    public LyException(int status, Throwable throwable){
        this.status = status;

    }

    public LyException(int status,String message){
        super(message);
        this.status = status;
    }
    //三个参数 分别为  状态码  消息内容 异常的起源
    public LyException(int status,String messsage,Throwable cause){
        super(cause);
        this.status = status;
    }
}
